#-*- coding:utf-8 -*-

from util import *
import redis
r = redis.Redis(host='localhost', port=6379, db=0)

#创建新评论id
def newCommentID():
    return r.incr('COMMENT_CNT')

#获取评论的key
def keyComment(id):
    return "COMMENT_%d" % id


    
